#include <QtGui/QLabel>
#include <QtGui/QVBoxLayout>
#include <QtGui/QIcon>
#include "InformationDialog.h"

InformationDialog::InformationDialog(QWidget *parent) : QDialog(parent) {
	informationLabel = new QLabel;
	informationLabel->setWordWrap(true);
	informationLabel->setText("<b><center>" + tr("Thank you for Vialinx Editor usage!") + "</center></b><br>&nbsp;&nbsp;&nbsp;&nbsp;Vialinx Editor is absolutely free software spreaded under GPL v3. If you have some ideas how to improve the editor, write about it to developer's e-mail, please.");
	
	QVBoxLayout *mainLayout = new QVBoxLayout;
	mainLayout->addWidget(informationLabel);
	setLayout(mainLayout);
	
	setWindowTitle(tr("Information"));
	setWindowIcon(QIcon(":/icons/about.png"));
	setFixedSize(300,sizeHint().height());
}

InformationDialog::~InformationDialog() {
	delete informationLabel;
}
